import React from "react";
import "./App.less";
import routes from "./routes";
import Header from "./components/header";
// import Home from './pages/home'
// import PaybillTeam from './pages/paybillTeam'
import {
    // BrowserRouter,
    Route,
    HashRouter
} from "react-router-dom";

function App() {
    console.log(routes, "routes");
    return (
        <div className="App">
            <Header></Header>
            <HashRouter>
                {routes.map(route => (
                    <Route {...route} />
                ))}
            </HashRouter>
        </div>
    );
}

export default App;
